package org.tinygroup.uiengineweblayer;

import java.io.IOException;

public class UiCssInfo {

	private String path;
	
	private byte[] bytes;
	
	public UiCssInfo(String path, String content) throws IOException {
		this(path,content,"UTF-8");
	}
	
    public UiCssInfo(String path, String content,String encode) throws IOException {
		this(path,content.getBytes(encode));
	}

	public UiCssInfo(String path, byte[] bytes) {
		super();
		this.path = path;
		this.bytes = bytes;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}
	
	public byte[] getBytes(){
		return bytes;
	}

	public String getContent() throws IOException {
		return getContent("UTF-8");
	}

	
	public String getContent(String encode) throws IOException {
		return new String(bytes,encode);
	}
	
}
